package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class SwimlaneOperatorPK implements Serializable {

    /** identifier field */
    private Long swimlaneId;

    /** identifier field */
    private String operatorId;

    /** full constructor */
    public SwimlaneOperatorPK(Long swimlaneId, String operatorId) {
        this.swimlaneId = swimlaneId;
        this.operatorId = operatorId;
    }

    /** default constructor */
    public SwimlaneOperatorPK() {
    }

    /** 
     *                @hibernate.property
     *                 column="swimlaneID"
     *                 length="18"
     *             
     */
    public Long getSwimlaneId() {
        return this.swimlaneId;
    }

    public void setSwimlaneId(Long swimlaneId) {
        this.swimlaneId = swimlaneId;
    }

    /** 
     *                @hibernate.property
     *                 column="operatorID"
     *                 length="7"
     *             
     */
    public String getOperatorId() {
        return this.operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("swimlaneId", getSwimlaneId())
            .append("operatorId", getOperatorId())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof SwimlaneOperatorPK) ) return false;
        SwimlaneOperatorPK castOther = (SwimlaneOperatorPK) other;
        return new EqualsBuilder()
            .append(this.getSwimlaneId(), castOther.getSwimlaneId())
            .append(this.getOperatorId(), castOther.getOperatorId())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSwimlaneId())
            .append(getOperatorId())
            .toHashCode();
    }

}
